package com.study.model.jdao;

import java.util.List;

import org.springframework.data.repository.CrudRepository;
import com.study.model.pojo.Dept;
import com.study.model.pojo.Form;
import com.study.model.pojo.User;

/**JPA接口DAO
 * @author SMILE
 */

public interface IUserDAO extends CrudRepository<User,Integer>{

	/**
	 * 根据用户名查询员工
	 */
	public User findByUseName(String name);
	
	public User findByUseId(int uid);
	
	
	public User findByLoginName(String name);

	/**
	 * 通过登录名和密码查询用户
	 */
	public User findByLoginNameAndUsePassword(String username,String password);
}

